package com.mpyy.pojo;

import lombok.*;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
* product_breakage 实体类
* Wed Feb 23 09:47:17 CST 2022 tangneng
*/ 
@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class ProductBreakage{

	private String proBadId;

	private String depotId;

	private Date proBadDate;

	private String empId;

	private String proBadComment;

	/*操作员*/
	private String proBadOperator;

	private String depotName;

	private String empName;

	private Paging paging;

	/**开始日期*/
	private Date startBreakageDate;

	/**截至日期*/
	private Date stopBreakageDate;

	public void setProBadDate(String proBadDate) throws ParseException {
		this.proBadDate = new SimpleDateFormat("yyyy-MM-dd").parse(proBadDate);
	}

	public void setStartBreakageDate(String startBreakageDate) throws ParseException {
		this.startBreakageDate = new SimpleDateFormat("yyyy-MM-dd").parse(startBreakageDate);
	}

	public void setStopBreakageDate(String stopBreakageDate) throws ParseException {
		this.stopBreakageDate = new SimpleDateFormat("yyyy-MM-dd").parse(stopBreakageDate);
	}
}

